cmake_minimum_required(VERSION 3.23)
project(wsserver)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
set(TEST OFF)

link_libraries(PocoFoundation PocoJSON PocoNet PocoUtil modbus)

if (TEST)
    add_definitions(-DTEST)
    add_executable(wsserver main.cpp clienttest.hpp data.h)
else ()
    add_executable(wsserver main.cpp client.hpp data.h)
endif ()

